<?php
require_once 'phpenv.php';
require_once("XML/Unserializer.php");
$xml = new XML_Unserializer();
if (!file_exists('sample3.xml')) {
    echo "file not found";
    exit();
}
$xml_data = file_get_contents("sample3.xml");
$xml->unserialize($xml_data);
$hashed_xml = $xml->getUnserializedData();
?>
 <?php foreach($hashed_xml['channel']['item'] as $data) {?>
        <dt>
                <a href="<?php echo $data['link']?>">
                        <?php echo $data['title'];?>
                </a>
        </dt>
        <dd><?php echo $data['description'];?></dd>
<?php }?>
